﻿<?php global $customer_id; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html $htmlparams xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<!--$headcontent-->

    <link href="css/layout.css" type="text/css" rel="Stylesheet" />
    <script type="text/javascript" src="js/pngfix.js"></script>
    <script type="text/javascript" src="js/jquery-1.4.2.js"></script>
    <script type="text/javascript" src="js/jquery.easing.min.js"></script>
    <script type="text/javascript" src="js/jquery.lavalamp.min.js"></script>
    <script type="text/javascript">
        $(function() {
            $("#hmenu").lavaLamp({
                fx: "backout",
                speed: 700,
                click: function(event, menuItem) {
                    return false;
                }
            });
        });

        function onFocus() {
            var t = document.getElementById("searchtxt").value;
            if (t == "Nhập từ khóa muốn tìm")
                document.getElementById("searchtxt").value = "";
        }
        function onBlur() {
            var t = document.getElementById("searchtxt").value;
            if (t == "")
                document.getElementById("searchtxt").value = "Nhập từ khóa muốn tìm";
        }

        window.attachEvent("onload", correctPNG);
        
        jQuery(document).ready(function(){
           jQuery("#checkout").click(function(event){
                window.location.href = 'checkout_shipping.php';             
           });
           
           jQuery("#hmenu li").click(function(){
               jQuery(this).toggleClass("current");            
           });
         });

    </script>
</head>
<body>

<div align="center">
    <div class="allwrapper">
        <div class="headerbg"></div>
        <div class="header">            
            <ul class="topnav">
                <li><a href="index.php" title="Trang chủ">Trang chủ</a></li>
                <li>$cartcontents</li>
                <li><a href="<?php echo tep_href_link('orders_product.php', '', 'SSL') ?>">Đặt hàng</a></li>
                <?php if (!tep_session_is_registered('customer_id')) { ?>
                    <li><a href="$urlmyaccount" title="Đăng nhập">Đăng nhập</a></li>
                <?php } ?>
                <li class="lastnav">$myaccountlogoff</li>
            </ul>
            
            <ul class="lavaLampWithImage" id="hmenu">
                <li class="current"><a href="index.php?cPath=26">Quần áo bé</a></li>
                <li><a href="index.php?cPath=27">Đồ chơi</a></li>
                <li><a href="index.php?cPath=28">&nbsp;Đồ dùng cho bé</a></li>
                <li><a href="index.php?cPath=41">Thực phẩm</a></li>
                <li><a href="index.php?cPath=42">Thuốc cho bé</a></li>
            </ul>
            <?php            
                $account_query = tep_db_query("select customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'");
                $account = tep_db_fetch_array($account_query);
            ?>
            <span class="welcome">
                <?php if (!tep_session_is_registered('customer_id')) { ?>
                    <strong>Chào mừng đến với website</strong>, <a href="$urlmyaccount" title="Đăng nhập">Đăng nhập</a>
                <?php }else{ ?>
                    <strong>Xin chào</strong>,                 
                    <a href="account.php">
                        <?php echo $account['customers_firstname'].' '.$account['customers_lastname']; ?>
                    </a>
                <?php } ?>
            </span>
            $searchbox
        </div>
        <div class="body">
            <div class="leftmenu">                                
                $categorybox
                $manufacturerbox
                <ul class="lmmid_p">
                    <iframe src="http://www.facebook.com/plugins/likebox.php?id=113500908704399&amp;width=183&amp;height=587&amp;connections=10&amp;stream=true&amp;header=true" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:190px; height:587px;" allowTransparency="true"></iframe>
                    <!-- <fb:like-box profile_id="113500908704399" width="183" connections="15"></fb:like-box> -->
                </ul>
                <div class="lmbot"></div>
                <div class="flower"></div>
            </div>
            <div class="home-content">
                <div class="home-top"></div>
                <?php $cPath = $_REQUEST['cPath'];
                    if($cPath != ''){
                ?>
                <div class="toy-top">
                    <div class="breadcum">
                        $breadcrumbs
                    </div>
                    <div class="cart">
                        $cartbox
                        <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') ?>">
                            <input type="button" class="checkout" id="checkout" title="Thanh toán" value="Thanh toán" />
                        </a>
                    </div>
                </div>
                <?php
                    }
                ?>
                <div class="home-mid">
                    $content                                       
                </div>
                
                <div class="home-bot"></div>
                
                <div class="footer">
                    <ul class="footernav">
                        <li><a href="index.php?cPath=26" title="Quần áo">Quần áo</a></li>
                        <li><a href="index.php?cPath=39" title="Trẻ em">Trẻ em</a></li>
                        <li><a href="index.php?cPath=31" title="Gia dụng">Gia dụng</a></li>
                        <li><a href="index.php?cPath=41" title="Sữa">Sữa</a></li>
                        <li class="lastnav"><a href="index.php?cPath=42" title="Thuốc bổ">Thuốc bổ</a></li>
                    </ul>
                    © 2010 <a href="index.php" title="UShop.vn">Ushop.vn.</a> All Rights Reserved.
                </div>
            </div>
        </div>
    </div>
</div>

<!-- Cai dat XFBML -->
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: '150354344988290', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement('script'); e.async = true;
    e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
    document.getElementById('fb-root').appendChild(e);
  }());
</script>
<!-- Ket thuc cai dat XFBML -->

</body>
</html>